

package com.hazelcast.internal.longregister.operations;

import com.hazelcast.spi.impl.operationservice.BackupAwareOperation;

public abstract class LongRegisterBackupAwareOperation extends AbstractLongRegisterOperation implements BackupAwareOperation {

    protected boolean shouldBackup = true;

    public LongRegisterBackupAwareOperation() {
    }

    public LongRegisterBackupAwareOperation(String name) {
        super(name);
    }

    @Override
    public boolean shouldBackup() {
        return shouldBackup;
    }

    @Override
    public int getSyncBackupCount() {
        return 1;
    }

    @Override
    public int getAsyncBackupCount() {
        return 0;
    }
}
